Skip to content

Support previews for stacked pull requests - #1807

Draft
st0012 wants to merge 3 commits into
ruby:masterfrom
st0012:codex/stacked-pr-previews
Draft

Support previews for stacked pull requests#1807
st0012 wants to merge 3 commits into
ruby:masterfrom
st0012:codex/stacked-pr-previews

Conversation

@st0012

@st0012 st0012 commented Sep 1, 2026

Copy link
Copy Markdown
Member

Supports documentation previews for pull requests targeting any branch in ruby/rdoc, including stacked PRs. Previews remain automatic, with no maintainer deployment approval.

Fork workflow events can omit the PR number. The resolver finds each open PR with the same source repository, branch, and head commit. If one head branch targets multiple bases, each PR gets its own preview URL and comment. Each deployment checks that PR's head and base again. Cloudflare secrets remain limited to the deployment step, and the trusted workflow does not check out PR code.

Base retargets start a new preview build. Title and body edits skip the build without cancelling active work or causing missing-artifact errors. A successful build that actually ran must still provide a valid artifact.

The preview uses the exact PR head, not a merge with its base branch. A parent branch update therefore does not rebuild the child preview. Restacking the child starts a new build through the synchronize event.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Documentation preview

View the preview

Commit: 90bd79b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant